import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './plugins/element.js'
import './assets/css/global.css'
// import axios from 'axios'
// import echarts from 'echarts/lib/echarts'
import * as echarts from 'echarts'

export const eventBus = new Vue()

Vue.prototype.$echarts = echarts
// axios.interceptors.request.use(config => {
//   // console.log(config)
//   config.headers.Authorization = window.sessionStorage.getItem('token')
//   // 必须返回config
//   return config
// })
// axios.defaults.baseURL = 'https://www.liulongbin.top:8888/api/private/v1/'
// Vue.prototype.$http = axios
Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
